<%@ page language="java"   pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%-- <%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%> --%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
 <%--  ${requestScope.contextPath}不行 --%>
  <%--
    ${requestScope.contextPath} ==request.getAttribute("contextPath")  
   --%>
   <%--  <base href="<%=basePath%>"> --%>
     <base href="${pageContext.request.contextPath}/">
    <title>My JSP 'student.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  <%-- <%
   Student s=request.get
   
   %>
   <%=s.getStuno() %> --%>
  <body>
    <h1>学生详细信息：</h1>
    <p>
     学号:${stu.stuno}
    </p>
     <p>
     姓名:${stu.sname}
    </p>
    <p>
     入学日期:
     <fmt:formatDate value="${stu.enterDate}" pattern="yyyy年MM月dd日"/>
    </p>
    <!-- 补充完整 -->
  </body>
</html>
